package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.ydd.entity.Article;
import com.itheima.ydd.mapper.ArticleMapper;
import com.itheima.ydd.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements ArticleService{

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public boolean deleteById(Long id) {
        articleMapper.deleteById(id);
        return true;
    }
}




